//
//  NBMHorizontalFlowLayout.m
//  KurentoToolboxDemo
//
//  Created by 葛殿宏 on 16/3/20.
//  Copyright © 2016年 Telecom Italia S.p.A. All rights reserved.
//

#import "NBMHorizontalFlowLayout.h"

#define ITEM_SIZE 100.0
#define ACTIVE_DISTANCE 200
#define ZOOM_FACTOR 0.4

@implementation NBMHorizontalFlowLayout

-(id)init
{
    self = [super init];
    if (self) {
        self.itemSize = CGSizeMake(ITEM_SIZE, ITEM_SIZE);
//        self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
//        //  确定了缩进，此处为上方、下方各缩进200
//        self.sectionInset = UIEdgeInsetsMake(ITEM_SIZE, ITEM_SIZE/2, ITEM_SIZE, ITEM_SIZE/2);
//        //  每个item在水平方向的最小间距
//        self.minimumLineSpacing = ITEM_SIZE/4;
        
    }
    return self;
}

- (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)oldBounds
{
    return YES;
}

@end